package com.example.rabbitboot;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author cxx
 * @create 2020-02-21 0:14
 **/
@Component
@RabbitListener(queues = "my_boot_1")
public class RabbitConsumer {

    @RabbitHandler
    public void process(String msg){
        System.out.println ("my_boot_1:"+msg);
    }

}
